package controllers

import "read.com/admin/models"

type TropismController struct {
	BaseController
}

func (self *TropismController) List() {
	self.Data["pageTitle"] = "用户取向分析"
	self.display()
}

func (self *TropismController) Table() {
	con := self.GetString("con")
	if con == "clicks" {
		result := models.GetAveClicks()
		self.ajaxList("成功",MSG_OK,0,result)
	}else if con == "users" {
		result := models.GetAveUsers()
		self.ajaxList("成功",MSG_OK,0,result)
	}

}